updating oE arccos

arccos

include math.e 
namespace math 
public function arccos(trig_range x) 

returns an angle given its cosine.

Parameters:
  1. value : an object, each atom in which will be acted upon.
Returns:

An object, the same shape as value. When value is an atom, the result is an atom, an angle whose cosine is value.

Errors:

If any atom in value is not in the -1..1 range, it cannot be the cosine of a real number, and an error occurs.

Comments:

A value between 0 and PI radians will be returned.

This function may be applied to an atom or to all elements of a sequence.

arccos is not as fast as arctan.

Example 1:
s = arccos({-1,0,1}) 
-- s is {3.141592654, 1.570796327, 0} 
See Also:

cos, PI, arctan

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu